package com.atguigu.yygh.cmn.service;

import com.atguigu.yygh.model.cmn.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;


public interface DictService extends IService<Dict> {
    List<Dict> findChlidData(Long id);

    /**
     * 导出
     *
     * @param response
     */
    void exportData(HttpServletResponse response);

    //导入数据字典
    void importDictData(MultipartFile file);

    /**
     * 根据上级编码与值获取数据字典名称
     *
     * @param parentDictCode
     * @param value
     * @return
     */
    String getDictName(String parentDictCode,
                       String value);

    List<Dict> findByDictCode(String dictCode);
}
